package milkproduction.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import milkproduction.service.OrderService;
import milkproduction.to.OrderTO;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;

public class OrderController extends MultiActionController {
	
	private OrderService service;
	public void setOrderService(OrderService service){
		this.service = service;
	}
	
	public ModelAndView getOrder(HttpServletRequest request, HttpServletResponse response)throws Exception{
		 
		return new ModelAndView("jsonview","order",service.getOrder());
	}
	
	

}
